import Cookie from 'js-cookie';
const Token = 'Auth-Token';
const Key = 'Session-Key';
const Expires = 7;
export const setToken = (token) => {
  Cookie.set(Token, token, {
    expires: Expires
  })
}

export const getToken = () => Cookie.get(Token);

export const setKey = (key) => {
  Cookie.set(Key, key, {
    expires: Expires
  })
}

export const getKey = () => Cookie.get(Key);

export const clearToken = () => {
  Cookie.remove(Token);
}
export const clearKey = () => {
  Cookie.remove(Key);
}